package server.main.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import server.main.config.cache.MybatisPlusRedisCache;
import server.main.pojo.AccountRole;

/**
 * @auther MingHsZzz
 * @Date 2022/10/10  19:20
 * @project main
 * @description
 */


@Mapper
@CacheNamespace(implementation = MybatisPlusRedisCache.class)
public interface AccountRoleMapper extends BaseMapper<AccountRole> {


    @Delete("DELETE FROM account_role WHERE server_account_jobnum = #{jobnum} AND role_id = #{roleid}")
    public void delete(String jobnum,Integer roleid);



    @Delete("delete from account_role where server_account_jobnum = #{jobnum}")
    public void deleterole(String jobnum);
}
